﻿<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<link href="../style/css/layout.css" rel="stylesheet" type="text/css" />
<link href="../style/css/font.css" rel="stylesheet" type="text/css" />
<title>找工作</title>
</head>

<body>
<?php
	@session_start();
	$typeRole_Visitor = 0;//判断登陆的用户是企业用户还是毕业生用户
	$graduateId_Visited = 0;
	//判断是否登录
	if(!isset($_SESSION["Graduate_Id"]) || $_SESSION["Graduate_Id"] == null)
	{
		//非毕业生用户
		if(!isset($_SESSION["Company_Id"]) || $_SESSION["Company_Id"] == null)
		{
			/*非企业用户、未登录*/
			echo '<script>alert("请登录再进呐~~ ");window.location.href="../pages/login.php";</script>';
			exit();
		}
		else
		{
			//企业用户
			$typeRole_Visitor = 2;//2代表企业用户
		}
	}
	else
	{
		$typeRole_Visitor = 1;//1代表毕业生用户
	}
	
	/*已经登录*/
	//通过地址获取公司的id
	if(!isset($_GET["graduateId"]) || $_GET["graduateId"] == null)
	{
		//地址中并没有毕业生id
		
		if($typeRole_Visitor == 1)
		{
			//毕业生用户，则把被访问的毕业生id的默认改为本人的id
			$graduateId_Visited = (int)$_SESSION["Graduate_Id"];
		}
		else if($typeRole_Visitor == 2)
		{
			//公司用户，跳到公司自己的主页
			echo '<script>window.location.href="../company/index.php";</script>';
		}
		else
		{
			//什么都不是
			echo '<script>alert("请登录再进呐~~ ");window.location.href="../pages/login.php";</script>';
			exit();
		}
	}
	else
	{
		//已经登录，且地址栏中含有被访问的毕业生的id
		$graduateId_Visited = $_GET["graduateId"];
	}
	
	require("../inc/top.php");
	$Radio_place = $Radio_industry = $Radio_payment = $Radio_job_attribute = null;
	//获取各个单选项
	if(isset($_GET["place"]))
	{
		$Radio_place = (int)$_GET["place"];
	}
	else $Radio_place = 0;
	//echo '<script>alert("'.$Radio_place.'");</script>';
	
	if(isset($_GET["industry"]))
	{
		$Radio_industry = (int)$_GET["industry"];
	}
	else $Radio_industry = 0;
	//echo '<script>alert("'.$Radio_industry.'");</script>';
	
	if(isset($_GET["payment"]))
	{
		$Radio_payment = (int)$_GET["payment"];
	}
	else $Radio_payment = 0;
	
	if(isset($_GET["full_time"]))
	{
		$Radio_job_attribute = (int)$_GET["full_time"];
	}
	else $Radio_job_attribute = 0;
	
	include("../class/user.class.php");
	$class_user = new User();
?>

<div class="mainpage_contain">
	<div class="mainpage_nav">
    	<div class="mainpage_title"><?php echo $class_user->GetUserNameById($graduateId_Visited); ?>的个人主页</div>
        <div class="mainpage_tab_contain">
            <?php  include("inc/tabs.php"); ?>
        </div>
    </div>
    
    <div class="mainpage_body">
    	<div class="mainpage_left">
			<div class="searchjob_container">
            	<div class="searchbar"><input type="text" class="search_input" /></div>
                <div class="searchbar_btn"><input type="button" class="search_btn" value="搜工作"/></div>
                <div class="clear"></div>
            </div>
            
            <form action="Recruitment_Index.php" method="get">
            <div class="select_job_contain">
					<div class="select_job_bar">
						<div class="select_job_l">按地区</div>
						<input type="radio" name="place" <?php if($Radio_place == 0) echo 'checked="checked"';?> value="0"/><label>全部</label>
						<input type="radio" name="place" <?php if($Radio_place == 1) echo 'checked="checked"';?> value="1"/><label>宁波</label>
						<input type="radio" name="place" <?php if($Radio_place == 2) echo 'checked="checked"';?> value="2"/><label>杭州</label>
						<input type="radio" name="place" <?php if($Radio_place == 3) echo 'checked="checked"';?> value="3"/><label>北京</label>
						<input type="radio" name="place" <?php if($Radio_place == 4) echo 'checked="checked"';?> value="4"/><label>上海</label>
						<div class="clear"></div>
					</div>
					<div class="select_job_bar_border"></div>
					<div class="select_job_bar">
						<div class="select_job_l">按行业</div>
						<input type="radio" name="industry" <?php if($Radio_industry == 0) echo 'checked="checked"';?> value="0"/><label>全部</label>
						<input type="radio" name="industry" <?php if($Radio_industry == 1) echo 'checked="checked"';?> value="1"/><label>计算机</label>
						<input type="radio" name="industry" <?php if($Radio_industry == 2) echo 'checked="checked"';?> value="2"/><label>金融</label>	
						<input type="radio" name="industry" <?php if($Radio_industry == 3) echo 'checked="checked"';?> value="3"/><label>教育</label>
						<div class="clear"></div>
					</div>
					<div class="select_job_bar_border"></div>
					<div class="select_job_bar">
						<div class="select_job_l">按薪酬</div>
						<input type="radio" name="payment" <?php if($Radio_payment == 0) echo 'checked="checked"';?> value="0"/><label>全部</label>
						<input type="radio" name="payment" <?php if($Radio_payment == 1) echo 'checked="checked"';?> value="1"/><label>2000以下</label>
						<input type="radio" name="payment" <?php if($Radio_payment == 2) echo 'checked="checked"';?> value="2"/><label>2001-4000</label>
						<input type="radio" name="payment" <?php if($Radio_payment == 3) echo 'checked="checked"';?> value="3"/><label>4001-6000</label>
						<input type="radio" name="payment" <?php if($Radio_payment == 4) echo 'checked="checked"';?> value="4"/><label>6001-8000</label>
						<input type="radio" name="payment" <?php if($Radio_payment == 5) echo 'checked="checked"';?> value="5"/><label>8000以上</label>
						<div class="clear"></div>
					</div>
					<div class="select_job_bar_border"></div>
					<div class="select_job_bar">
						<div class="select_job_l">按类别</div>
						<input type="radio" name="full_time" <?php if($Radio_job_attribute == 0) echo 'checked="checked"';?> value="0"/><label>全部</label>
						<input type="radio" name="full_time" <?php if($Radio_job_attribute == 1) echo 'checked="checked"';?> value="1"/><label>全职</label>
						<input type="radio" name="full_time" <?php if($Radio_job_attribute == 2) echo 'checked="checked"';?> value="2"/><label>兼职</label>
						<div class="clear"></div>
					</div>
					<div class="select_job_bar_border"></div>
					<div class="select_job_bar padding_10" align="right">
						<input type="submit" class="search_btn" value="按条件搜索"/>
					</div>
				</div>
            </form>
            <div class="job_listview_container">
				<?php include("../class/job.class.php");
					$jobClass = new Job();
					$num_page = (int)$_GET["page"];
					if($num_page == null) $num_page = 1; 
					$jobClass->JobLayout($graduateId_Visited,$Radio_place,$Radio_industry,$Radio_payment,$Radio_job_attribute,$num_page);
				?>	
		    	<div class="job_listview_box">
                    <div class="job_company_logo"><a href="Recruitment_detail.php"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" border="0" /></a></div>
                    <div class="job_listview_title"><a href="Recruitment_detail.php">中学英语教师</a> <span class="company_aera">杭州</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
				<!--
            	<div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13062067260007840mm.jpg" width="60" height="60" /></div>
                    <div class="job_listview_title">学而思教育集团华东理工大学专场招聘</div>
                    <div class="job_listview_brifintro">学而思国际教育集团 | 5000+/月</div>
                    <div class="job_listview_brifintro">由招聘专员 学而思发布</div>
              	</div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13231802920005146mm.jpg" width="60" height="60" /></div>
                    <div class="job_listview_title">国内业务开发 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">宁波瑞速国际货运代理有限公司 | 2500+/月</div>
                    <div class="job_listview_brifintro">由董事长助理 胡赟发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">杭州</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
            	<div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13062067260007840mm.jpg" width="60" height="60" /></div>
                    <div class="job_listview_title">学而思教育集团华东理工大学专场招聘</div>
                    <div class="job_listview_brifintro">学而思国际教育集团 | 5000+/月</div>
                    <div class="job_listview_brifintro">由招聘专员 学而思发布</div>
              	</div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13231802920005146mm.jpg" width="60" height="60" /></div>
                    <div class="job_listview_title">国内业务开发 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">宁波瑞速国际货运代理有限公司 | 2500+/月</div>
                    <div class="job_listview_brifintro">由董事长助理 胡赟发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">杭州</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
            	<div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13062067260007840mm.jpg" width="60" height="60" /></div>
                    <div class="job_listview_title">学而思教育集团华东理工大学专场招聘</div>
                    <div class="job_listview_brifintro">学而思国际教育集团 | 5000+/月</div>
                    <div class="job_listview_brifintro">由招聘专员 学而思发布</div>
              	</div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13231802920005146mm.jpg" width="60" height="60" /></div>
                    <div class="job_listview_title">国内业务开发 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">宁波瑞速国际货运代理有限公司 | 2500+/月</div>
                    <div class="job_listview_brifintro">由董事长助理 胡赟发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
                <div class="job_listview_box">
                    <div class="job_company_logo"><img src="../data/company_logo/13266194330001519mm.png" width="60" height="60" /></div>
                    <div class="job_listview_title">中学英语教师 <span class="company_aera">宁波</span></div>
                    <div class="job_listview_brifintro">浙江新课堂教育咨询有限公司 | 3000+/月</div>
                    <div class="job_listview_brifintro">由人力资源部主任 新课堂教育发布</div>
                </div>
				-->
                <div class="clear"></div>
            </div>
            
            <div class="h10px"></div>
            <!--页码-->
            <div class="page_contain">
            	<!--<div class="page_box" onclick="location.href='?page=pre';">上一页</div>
            	<div class="page_box on"  onclick="location.href='?page=pre';">1</div>
                <div class="page_box">2</div>
                <div class="page_box">3</div>
                <div class="page_box">4</div>
                <div class="page_box">5</div>
                <div class="page_box">6</div>
                <div class="page_box">7</div>
                <div class="page_box">8</div>
                <div class="page_box">9</div>
                <div class="page_box">10</div>
                <div class="page_box">下一页</div>-->
				<?php
					$jobClass->Show_PageList($graduateId_Visited,$num_page,$Radio_place,$Radio_industry,$Radio_payment,$Radio_job_attribute,"Recruitment_Index.php?page=");
				?>
            	<div class="clear"></div>
            </div>
		

		</div>
        
        <div class="mainpage_right">
   	    <div class="avatar_contain">
			<img src="../images/12974102173752464b.gif" width="200" height="200" />
			<div class="vip">
					<?php if($class_user->JudgeGraduateAttest($graduateId_Visited) == 1) echo '<img src="../images/v.png">';?>
			</div>
		</div>
        <div class="avatar_chg">修改头像</div>
        </div>
        <div class="clear"></div>
    </div>
</div>

<?php
	require("../inc/copyright.php");
?>
</body>
</html>